home *** CD-ROM | disk | FTP | other *** search
- -- card: 2982 from stack: in
- -- bmap block id: 3319
- -- flags: 0000
- -- background id: 2727
- -- name:
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=181 top=261 right=300 bottom=335
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Start Conversion
- ----- HyperTalk script -----
- on mouseUp
- --remember to OPEN & CLOSE the TEXT files
- ask "Which file do you wish to Convert??" with "CL.ANALYSIS"
- if it is empty then exit mouseUp
- put it into importName
- open file importName
- ask "What do you wish to name export file??" with "Chart Data"
- if it is empty then exit mouseUp
- put it into exportName
- open file exportName
- put the secs into start
- set lockScreen to true
- set cursor to 4
- write "Monthy Report" & return & tab & "Hours" & tab & "Logins" & return to file exportName
- repeat forever
- read from file importName until return
- put it into tempLine --temp field
-
- if the length of tempLine <=1 then --we have no record to process
- exit repeat
- end if
-
- put char 1 to 2 of tempLine into itemOne --month label
- put char 8 to 10 of tempLine into itemTwo --hours per month
- put char 22 to 25 of tempLine into itemThree --logins per month
-
- if first char of itemOne = " " then
- delete first char of itemOne
- end if
- repeat until first char of itemTwo <> " "
- delete first char of itemTwo
- end repeat
- repeat until first char of itemThree <> " "
- delete first char of itemThree
- end repeat
- write itemOne & tab & itemTwo & tab & itemThree & return to file exportName
- end repeat
-
- write return & return & "Weekly Report" & return to file exportName
- write tab & "Hours" & tab & "Logins" & return to file exportName
- put 1 into count
- repeat forever
- read from file importName until return
- put it into tempLine --temp field
-
- if the length of tempLine <=1 then --we have no record to process
- exit repeat
- end if
-
- put count into itemOne --week label
- put char 9 to 13 of tempLine into itemTwo --hours per week
- put char 23 to 28 of tempLine into itemThree --logins per week
-
- repeat until first char of itemTwo <> " "
- delete first char of itemTwo
- end repeat
- repeat until first char of itemThree <> " "
- delete first char of itemThree
- end repeat
- write itemOne & tab & itemTwo & tab & itemThree & return to file exportName
- add 1 to count
- end repeat
-
-
- write return & return & "Daily Report" & return to file exportName
- write tab & "Min." & tab & "LogX10" & return to file exportName
- put 1 into count
- repeat forever
- read from file importName until return
- put it into tempLine --temp field
-
- if the length of tempLine <=1 then --we have no record to process
- exit repeat
- end if
-
- put count into itemDay --day label
- put char 12 to 13 of tempLine into itemOne --hours per day
- put char 15 to 16 of tempLine into itemTwo --minutes per day
- put char 23 to 28 of tempLine into itemThree --logins per day
-
- repeat until first char of itemOne <> " "
- delete first char of itemOne
- end repeat
- repeat until first char of itemTwo <> "0"
- delete first char of itemTwo
- end repeat
- multiply itemOne by 60
- add itemOne to itemTwo
- repeat until first char of itemThree <> " "
- delete first char of itemThree
- end repeat
- multiply itemThree by 10
- write itemDay & tab & itemTwo & tab & itemThree & return to file exportName
- add 1 to count
- end repeat
-
-
- write return & return & "Hour / Day Report" & return to file exportName
- write tab & "Hours" & tab & "Logins" & return to file exportName
- repeat forever
- read from file importName until return
- put it into tempLine --temp field
-
- if the length of tempLine <=1 then --we have no record to process
- exit repeat
- end if
-
- put char 1 to 3 of tempLine into itemOne --day
- put char 7 to 9 of tempLine into itemTwo --hours per day
- put char 21 to 24 of tempLine into itemThree --logins per day
-
- repeat until first char of itemTwo <> " "
- delete first char of itemTwo
- end repeat
- repeat until first char of itemThree <> " "
- delete first char of itemThree
- end repeat
- write itemOne & tab & itemTwo & tab & itemThree & return to file exportName
- end repeat
-
-
- write return & return & "Hourly Report" & return to file exportName
- write tab & "Min." & tab & "LogX10" & return to file exportName
- put 1 into count
- repeat forever
- read from file importName until return
- put it into tempLine --temp field
-
- if the length of tempLine <=1 then --we have no record to process
- exit repeat
- end if
-
- put count into itemDay --Hour label
- put char 16 to 17 of tempLine into itemOne --hours per hour range
- put char 19 to 20 of tempLine into itemTwo --minutes per hour range
- put char 30 to 32 of tempLine into itemThree --logins per hour range
-
- repeat until first char of itemOne <> " "
- delete first char of itemOne
- end repeat
- repeat until first char of itemTwo <> "0"
- delete first char of itemTwo
- end repeat
- multiply itemOne by 60
- add itemOne to itemTwo
- repeat until first char of itemThree <> " "
- delete first char of itemThree
- end repeat
- multiply itemThree by 10
- write itemDay & tab & itemTwo & tab & itemThree & return to file exportName
- add 1 to count
- end repeat
-
- close file importName
- close file exportName
- end mouseUp
-
- if the length of tempLine <=1 then --we have no record to process
- close file importName
- close file exportName
- exit repeat
- end if
-
-
-